package com.iwe3.operation.handler;


import com.iwe3.operation.common.IErrorCode;
import lombok.Getter;

/**
 * 业务异常
 */
@Getter
public class BussinessException extends RuntimeException{

    private IErrorCode code;
    //多态：父类引用指向子类对象，接口引用指向实现类对象
    public BussinessException(IErrorCode code) {
        this.code = code;
    }

}
